<?php 
//父集
class Father
{	public $sex="男";
	var $huji="china";
	var $xuexing="o";
	
	function __construct()
	{
		echo "55555s";
	}

	function run(){
		echo "会跑的人";
	}

}

//子集
class Inherit extends Father
{	
	public function setCate($par){
        $this-$sex = $par;
    }
  
    function getCate(){
        echo $this->sex . PHP_EOL;
        echo $this->huji . PHP_EOL;
        echo $this->run();
        echo "<br>";

        echo  parent::run();
    }
}
























 ?>